﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/TabPage.Master" AutoEventWireup="true"
    CodeBehind="UserList.aspx.cs" Inherits="eTerm.Platform.Web.UserList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpButtons" runat="server">
    <table cellpadding="0" cellspacing="1px" border="0" style="width: 100%;" bgcolor="b5d6e6">
        <tr style="background-color: White; height: 32px;">
            <td align="right" style="width: 80px;">
                姓名:&nbsp;&nbsp;
            </td>
            <td style="padding: 5px">
                <asp:TextBox runat="server" ID="tbDisplayName"></asp:TextBox>
            </td>
            <td align="right">
                登录名:&nbsp;&nbsp;
            </td>
            <td style="padding: 5px">
                <asp:TextBox runat="server" ID="tbUserNo"></asp:TextBox>
            </td>
            <td align="right">
                公司:&nbsp;&nbsp;
            </td>
            <td style="padding: 5px">
                <asp:DropDownList runat="server" ID="dlCompany" DataValueField="CompanyCode" DataTextField="CompayName">
                </asp:DropDownList>
            </td>
        </tr>
        <tr style="background-color: White; height: 26px;">
            <td align="right" colspan="7">
                <asp:LinkButton runat="server" ID="btnNew" Text="新用户" />
                <asp:LinkButton runat="server" ID="btnQuery" Text="查询" OnClick="btnQuery_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpContent" runat="server">
    <asp:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
        runat="server" AlwaysShow="True" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
        PageSize="20" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowInputBox="Never"
        OnPageChanging="AspNetPager1_PageChanging" CustomInfoTextAlign="Left" LayoutType="Table">
    </asp:AspNetPager>
    <asp:Repeater runat="server" EnableViewState="false" OnItemDataBound="rptDetr_OnItemDataBound" ID="rptDetr">
        <HeaderTemplate>
            <div class="datagrid-header">
                <div class="datagrid-header-inner" style="display: block;">
                    <table border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td>
                                <div class="datagrid-cell" style="width: 40px; text-align: center; cursor: default;">
                                    <span>编号</span><span class="datagrid-sort-icon">&nbsp;</span></div>
                            </td>
                            <td>
                                <div class="datagrid-cell" style="width: 200px; text-align: center;">
                                    <span>公司名称</span><span class="datagrid-sort-icon">&nbsp;</span></div>
                            </td>
                            <td>
                                <div class="datagrid-cell" style="width: 90px; text-align: center;">
                                    <span>登录名称</span><span class="datagrid-sort-icon">&nbsp;</span></div>
                            </td>
                            <td>
                                <div class="datagrid-cell" style="width: 156px; text-align: center;">
                                    <span>用户姓名</span><span class="datagrid-sort-icon">&nbsp;</span></div>
                            </td>
                            <td>
                                <div class="datagrid-cell" style="width: 156px; text-align: center;">
                                    <span>邮件地址</span><span class="datagrid-sort-icon">&nbsp;</span></div>
                            </td>
                            <td>
                                <div class="datagrid-cell" style="width: 156px; text-align: center;">
                                    <span>手机号码</span><span class="datagrid-sort-icon">&nbsp;</span></div>
                            </td>
                            <td>
                                <div style="text-align: left; width: 100px; text-align: center; white-space: normal"
                                    class="datagrid-cell ">
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="datagrid-body">
                <table border="0" cellspacing="0" cellpadding="0">
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="datagrid-row-alt">
                <tr>
                    <td>
                        <div class="datagrid-cell" style="width: 40px; text-align: center; cursor: default;">
                            <span>
                                <%#Eval("UserModel.UserId")%></span><span class="datagrid-sort-icon">&nbsp;</span></div>
                    </td>
                    <td>
                        <div class="datagrid-cell" style="width: 200px; text-align: left;">
                            <span>
                                <%#Eval("CompanyName") %></span><span class="datagrid-sort-icon">&nbsp;</span></div>
                    </td>
                    <td>
                        <div class="datagrid-cell" style="width: 90px; text-align: left;">
                            <span>
                                <%#Eval("UserModel.UserNo")%></span><span class="datagrid-sort-icon">&nbsp;</span></div>
                    </td>
                    <td>
                        <div class="datagrid-cell" style="width: 156px; text-align: center;">
                            <span>
                                <%#Eval("UserModel.DisplayName")%></span><span class="datagrid-sort-icon">&nbsp;</span></div>
                    </td>
                    <td>
                        <div class="datagrid-cell" style="width: 156px; text-align: left;">
                            <span>
                                <%#Eval("UserModel.Email")%></span><span class="datagrid-sort-icon">&nbsp;</span></div>
                    </td>
                    <td>
                        <div class="datagrid-cell" style="width: 156px; text-align: center;">
                            <span>
                                <%#Eval("UserModel.Mobile")%></span><span class="datagrid-sort-icon">&nbsp;</span></div>
                    </td>
                    <td>
                        <div style="text-align: left; width: 100px; text-align: center; white-space: normal"
                            class="datagrid-cell ">
                            <asp:LinkButton runat="server" ID="lnkEdit" Text="编辑"></asp:LinkButton>
                        </div>
                    </td>
                </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr style="text-align: center;">
                <tr>
                    <td>
                        <div class="datagrid-cell" style="width: 40px; text-align: center; cursor: default;">
                            <span>
                                <%#Eval("UserModel.UserId")%></span><span class="datagrid-sort-icon">&nbsp;</span></div>
                    </td>
                    <td>
                        <div class="datagrid-cell" style="width: 200px; text-align: left;">
                            <span>
                                <%#Eval("CompanyName") %></span><span class="datagrid-sort-icon">&nbsp;</span></div>
                    </td>
                    <td>
                        <div class="datagrid-cell" style="width: 90px; text-align: left;">
                            <span>
                                <%#Eval("UserModel.UserNo")%></span><span class="datagrid-sort-icon">&nbsp;</span></div>
                    </td>
                    <td>
                        <div class="datagrid-cell" style="width: 156px; text-align: center;">
                            <span>
                                <%#Eval("UserModel.DisplayName")%></span><span class="datagrid-sort-icon">&nbsp;</span></div>
                    </td>
                    <td>
                        <div class="datagrid-cell" style="width: 156px; text-align: left;">
                            <span>
                                <%#Eval("UserModel.Email")%></span><span class="datagrid-sort-icon">&nbsp;</span></div>
                    </td>
                    <td>
                        <div class="datagrid-cell" style="width: 156px; text-align: center;">
                            <span>
                                <%#Eval("UserModel.Mobile")%></span><span class="datagrid-sort-icon">&nbsp;</span></div>
                    </td>
                    <td>
                        <div style="text-align: left; width: 100px; text-align: center; white-space: normal"
                            class="datagrid-cell ">
                            <asp:LinkButton runat="server" ID="lnkEdit" Text="编辑"></asp:LinkButton>
                        </div>
                    </td>
                </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table> </div>
        </FooterTemplate>
    </asp:Repeater>
    <asp:AspNetPager ID="AspNetPager2" runat="server" CloneFrom="AspNetPager1">
    </asp:AspNetPager>
</asp:Content>
